﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="addpictures.aspx.vb" Inherits="WebApplication11.addpictures" %>

<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="naija.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <div> <asp:Label ID="Label2" runat="server" Text="Category:"></asp:Label>
</div>
        <div><asp:Label ID="Label5" runat="server" Text="Style:"></asp:Label></div>
        <br />
        <div><asp:Label ID="Label11" runat="server" Text="Gender:"></asp:Label></div>
        <div><asp:Label ID="Label12" runat="server" Text="Desigher:"></asp:Label></div>
        <div><asp:Label ID="Label13" runat="server" Text="Ethnic Group:"></asp:Label></div>
        <div><asp:Label ID="Label14" runat="server" Text="Description:"></asp:Label></div>
        <asp:TextBox ID="TextBox3" runat="server" Height="66px" Width="572px"></asp:TextBox>
        <br />
        <asp:Label ID="Label15" runat="server" Text="Date:"></asp:Label>
        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        <br />
    </div>
    <div id="UploadPics">
    <div class="upper"> </div>
    <div class="Upload">
        <p style="color: #FF0066; font-weight: 100; font-family: 'Berlin Sans FB'; font-size: x-large;">
            STEP1 -
            Upload a Picture</p>
        In this first step you will upload your photo. We suggest you follow a few easy
        tips to help your photo transmit your unique sense of style:
        <ol>
            <li><strong>Light!, light!!, light!!! You can never have enough light around you when
                you take your photo. If possible, take it outside during a sunny day.</strong></li>
            <li><strong>Take your photo in portrait orientation. That is, vertical, or up and down.
                This will allow your photo to appear larger.</strong></li>
            <li><strong>Take a number of photos from different angles and upload the photo that
                you think best represents the style message you are trying to present to the world.</strong></li>
        </ol>
        When you have decided on a photo to upload, click ‘Browse’ and locate the photo
        on your computer. The photo must be 10 megabytes or less in size and in one of the
        folllowing formats: .jpg, .png, .gif
    </div>
    <div>
        <asp:Label ID="Label3" runat="server" Text="Category:"></asp:Label>
&nbsp;<asp:DropDownList ID="Category" runat="server" AutoPostBack="True" 
            DataSourceID="AccessDataSource1" DataTextField="CatName" DataValueField="ID">
        </asp:DropDownList>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/pictures.mdb" 
            SelectCommand="SELECT [CatName], [ID] FROM [Categories]">
        </asp:AccessDataSource>
        <asp:Label ID="Label4" runat="server" Text="Style:"></asp:Label>
        <asp:DropDownList ID="Style" runat="server" DataSourceID="AccessDataSource2" 
            DataTextField="StyleName" DataValueField="ID">
        </asp:DropDownList>
        <asp:AccessDataSource ID="AccessDataSource2" runat="server" 
            DataFile="~/App_Data/pictures.mdb" 
            SelectCommand="SELECT [CategoryID], [StyleName], [Description], [ID] FROM [Style] WHERE ([CategoryID] = ?)">
            <SelectParameters>
                <asp:ControlParameter ControlID="Category" Name="CategoryID" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:AccessDataSource>
        <br />
        <asp:Label ID="Label6" runat="server" Text="Gender:"></asp:Label>
        <asp:DropDownList ID="Gender" runat="server" DataSourceID="AccessDataSource3" 
            DataTextField="GenderName" DataValueField="ID">
        </asp:DropDownList>
        <asp:AccessDataSource ID="AccessDataSource3" runat="server" 
            DataFile="~/App_Data/pictures.mdb" 
            SelectCommand="SELECT [ID], [GenderName] FROM [Gender]">
        </asp:AccessDataSource>
        <asp:Label ID="Label7" runat="server" Text="Desigher:"></asp:Label>
        <asp:DropDownList ID="Designer" runat="server" DataSourceID="AccessDataSource4" 
            DataTextField="LastName" DataValueField="ID">
        </asp:DropDownList>
        <asp:AccessDataSource ID="AccessDataSource4" runat="server" 
            DataFile="~/App_Data/pictures.mdb" 
            
            SelectCommand="SELECT [FirstName], [Username], [ID], [LastName], [CompanyName], [Location], [ProfileImage] FROM [Designer]">
        </asp:AccessDataSource>
        <asp:Label ID="Label8" runat="server" Text="Ethnic Group:"></asp:Label>
        <asp:DropDownList ID="Ethnic" runat="server" DataSourceID="AccessDataSource5" 
            DataTextField="EthnicName" DataValueField="ID">
        </asp:DropDownList>
        <asp:AccessDataSource ID="AccessDataSource5" runat="server" 
            DataFile="~/App_Data/pictures.mdb" 
            SelectCommand="SELECT [ID], [Description], [EthnicName] FROM [Ethnic]">
        </asp:AccessDataSource>
        <asp:Label ID="Label9" runat="server" Text="Description:"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server" Height="66px" Width="572px"></asp:TextBox>
        <br />
        <asp:Label ID="Label10" runat="server" Text="Date:"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <br />
    </div>
    <div class="AddPictures ">
        <asp:Label ID="Label1" runat="server" Text="Picture Title: "></asp:Label>
        &nbsp;<asp:TextBox ID="tb_title" runat="server"></asp:TextBox>
        <br />
        <br />
        Select a file from your hard disk<br />
        <asp:FileUpload ID="FileUpload1" runat="server" />
        <br />
        <asp:Button ID="Button1" runat="server" Text="Submit" />
        
       <br /><asp:Label ID="FileUploadDetails" runat="server"></asp:Label>
    </div>
    </div>
    </form>
</body>
</html>
